//
//  MyUtilities.h
//  Dots
//
//  Created by hoangtx on 5/29/13.
//
//

#ifndef Dots_MyUtilities_h
#define Dots_MyUtilities_h
#include "cocos2d.h"

using namespace cocos2d;
class ColorSetObject;
class MyUtilities{
public:
    static double triTuyetDoi(double _value);
    static double distanceOfTwoPoints(CCPoint pointA, CCPoint pointB);
    static char* toString(int _value);
    static CCPoint getCenterPointOfSizeInsideParentRect(CCRect parentRect,CCSize childSize);
    static void drawRect(CCRect rectToDraw);
    static void drawRectAndFillWithColor(CCRect rectToDraw,ccColor4F color);
    static void drawRectAndFillWithColor(CCRect rectToDraw,ccColor4B color);
    static CCRect getRectOfNode(CCNode* node);
    static CCPoint getCoCosPointFromTouches(CCSet* touches);


    static long milisecondsNow();

};

#endif
